/* 新增配色变量 */
:root {
    --primary-color: #E5493D;     /* 豆瓣红 */
    --secondary-color: #FFC107;   /* 金色 */
    --dark-color: #1A1A1A;        /* 深灰 */
    --light-color: #F5F5F5;       /* 浅灰 */
    --bg-color: #0F172A;          /* 深蓝背景 */
    --border-color: rgba(229, 73, 61, 0.2); /* 边框色 */
}

/* 修改body背景 */
body {
    background: url(../images/bg_movie.jpg) no-repeat top center;
    background-size: cover;
    background-color: var(--bg-color);
    color: var(--light-color);
}

/* 修改标题颜色 */
header h1 {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(229, 73, 61, 0.5);
}

/* 修改面板样式 */
.panel {
    border: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 15px rgba(229, 73, 61, 0.1);
}

.panel h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.2rem;
}
/************************************************/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: electronicFont;
}

li {
    list-style: none;
}

body {
    position: relative;
    background: url(../images/bg1.jpg) no-repeat top center;
    line-height: 1.15;
}

header {
    position: relative;
    height: 1.25rem;
    background: url(../images/head_bg.png);
    background-size: 100% 100%;
}

header h1 {
    font-size: 0.4717rem;
    color: white;
    line-height: 1rem;
    text-align: center;
}

.showTime {
    position: absolute;
    right: 0.375rem;
    line-height: 0.9368rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.25rem;
    top: 0;
}

.mainbox {
    display: flex;
    min-width: 1024px;
    max-width: 2560px;
    margin: 0 auto;
    padding: 0.125rem 0.125rem 0;
}

.mainbox .column {
    flex: 4;
}

.mainbox .column:nth-child(2) {
    flex: 4;
    overflow: hidden;
}

.panel {
    position: relative;
    height: 6.9rem;
    width: 7.8rem;
    border: 1px solid rgba(25, 186, 139, 0.17);
rgba(255, 255, 255, 0.04);
    padding: 0 0.1887rem 0.5189rem;
    margin-bottom: 0.1887rem;
}

.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    border-left: 2px solid #02a6b5;
    border-top: 2px solid #02a6b5;
}

.panel::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-right: 2px solid #02a6b5;
    border-top: 2px solid #02a6b5;
}

.panel .panel-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.panel .panel-footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 10px;
    height: 10px;
    border-left: 2px solid #02a6b5;
    border-bottom: 2px solid #02a6b5;
}

.panel .panel-footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-right: 2px solid #02a6b5;
    border-bottom: 2px solid #02a6b5;
}

.panel h2 {
    height: 0.6038rem;
    color: #fff;
    line-height: 0.6038rem;
    text-align: center;
    font-size: 0.25rem;
    font-weight: 400;
}

.panel h2 a {
    color: #888888;
    text-decoration: none;
    margin: 0 0.1274rem;
}

.panel .chart {
    height: 3rem;
}

.panel .bar1 .chart {
    position: absolute;
    width: 30%;
    height: 45%;
    top: 55%;
    left: 0%;
}

.chart .ts {
    position: relative;
    color: #9999FF;
    font-size: 0.2rem;
    text-align: left;
    display: inline-block;
}

.chart .risk_num {
    position: relative;
    top: 0;
    right: -1rem;
    color: #9999FF;
    font-size: 0.2rem;
    text-align: right;
    display: inline-block;
}

.panel .bar1 .chart ul {
    list-style: none;
}

#risk_wrapper {
    margin-top: 2.5%;
    overflow: hidden;
    height: 80%;
    text-align: left;
    color: #FFF8DC;
}

.high_risk {
    color: #FF88C2;
}

.middle_risk {
    color: #99BBFF;
}

.no {
    background: rgba(101, 132, 226, 0.1);
    padding: 0.1887rem;
    margin: 0 0.125rem 0.125rem;
}

.no .no-hd {
    position: relative;
    border: 1px solid rgba(25, 186, 139, 0.17);
}

.no .no-hd ul {
    display: flex;
}

.no .no-hd ul li {
    position: relative;
    flex: 1;
    line-height: 1rem;
    font-size: 0.5rem;
    color: #33e2f1;
    text-align: center;
    font-family: electronicFont;
}

.no .no-hd ul li:nth-child(-n+3)::after {
    content: '';
    position: absolute;
    top: 25%;
    height: 50%;
    width: 1px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
}

.no .no-hd::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 10px;
    border-left: 2px solid #02a6b5;
    border-top: 2px solid #02a6b5;
}

.no .no-hd::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 10px;
    border-right: 2px solid #02a6b5;
    border-bottom: 2px solid #02a6b5;
}

.no .no-bd ul {
    display: flex;
}

.no .no-bd ul li {
    flex: 1;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    height: 0.5rem;
    font-size: 0.2264rem;
    padding-top: 0.1274rem;
    line-height: 0.5rem;
}

.map {
    position: relative;
    height: 9.9rem;
    margin: auto 0.1321rem;
    overflow: hidden;
}

.map .chart {
    position: absolute;
    margin-top: 1.3rem;
    top: 0;
    left: 0;
    width: 100%;
    height: 9.9rem;
}

/* 精准匹配 iframe，强制覆盖 left */
.map iframe {
    left: 40px !important;
    position: absolute !important; /* 确保定位生效 */
    /* 若需要调整 top，也可加上 */
    top: 0 !important;
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rotate1 {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

/* 约束屏幕尺寸 */
@media screen and (max-width: 1024px) {
    html {
        font-size: 42px !important;
    }
}

@media screen and (min-width: 1920px) {
    html {
        font-size: 80px !important;
    }
}

/* 新增：小屏设备布局重构 */
@media screen and (max-width: 1024px) {
    .mainbox {
        flex-direction: column; /* 垂直排列各列 */
    }

    .mainbox .column {
        width: 100%; /* 每列占满宽度 */
        margin-bottom: 0.5rem;
    }

    .panel {
        width: 100%;
        height: auto; /* 高度自适应 */
        padding-bottom: 0.3rem;
    }

    .no .no-hd ul li {
        font-size: clamp(1rem, 5vw, 2rem); /* 动态字体大小 */
    }
}

/* 新增：超小屏设备单列显示 */
@media screen and (max-width: 768px) {
    .no .no-hd ul {
        flex-direction: column; /* 垂直排列排行项 */
    }

    .no .no-hd ul li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0.5rem 0;
    }

    .no .no-hd ul li:nth-child(-n+3)::after {
        display: none; /* 移除分隔线 */
    }

    .filter-panel {
        flex-direction: column; /* 筛选面板垂直排列 */
        gap: 0.5rem;
    }
}

.return-button {
    display: inline-block;
    margin: 10px;
    padding: 10px 20px;
    color: #33E2F1;
    background-color: #09133E;
    text-decoration: none;
    border-radius: 5px;
    position: absolute;
    top: 5px;
    left: 10px;
}
/*******************************************************************/
/* 图表加载动画 */
.chart {
    width: 100% !important;  /* 占满父容器宽度 */
    height: 300px !important; /* 固定高度，或用 min-height */
}

.chart.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* 面板悬停效果 */
.panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(229, 73, 61, 0.2);
    transition: all 0.3s ease;
}